import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class NewsPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: GestureDetector(
          onTap: () {
            print("这是新闻");
            Navigator.pushNamed(context, '/main');
          },
          child: Text("这里可以打开主页"),
        ),
      ),
    );
  }
}
